package org.plex.model.imp;

import java.util.Date;
import java.util.List;

import org.plex.model.ProcessInstance;

import com.adobe.idp.taskmanager.dsc.client.query.ProcessInstanceRow;

public class ProcessInstanceImp implements ProcessInstance
{
	private ProcessInstanceRow processInstanceRow;
    
	public ProcessInstanceImp(ProcessInstanceRow processInstanceRow)throws NullPointerException
	{
		if(null==processInstanceRow)
		{
			throw new NullPointerException();
		}
		this.processInstanceRow=processInstanceRow;
		
	}
	public String getDescription()
	{
		// TODO Auto-generated method stub
		return this.processInstanceRow.getDescription();
	}

	public String getInitiator()
	{
		// TODO Auto-generated method stub
		return this.processInstanceRow.getInitiator();
	}

	public String getInitiatorId()
	{
		// TODO Auto-generated method stub
		return this.processInstanceRow.getInitiatorId();
	}

	public Date getProcessCompleteTime()
	{
		// TODO Auto-generated method stub
		return this.processInstanceRow.getProcessCompleteTime();
	}

	public long getProcessInstanceId()
	{
		// TODO Auto-generated method stub
		return this.processInstanceRow.getProcessInstanceId();
	}

	public short getProcessInstanceStatus()
	{
		// TODO Auto-generated method stub
		return this.processInstanceRow.getProcessInstanceStatus();
	}

	public String getProcessName()
	{
		// TODO Auto-generated method stub
		return this.processInstanceRow.getProcessName();
	}

	public Date getProcessStartTime()
	{
		// TODO Auto-generated method stub
		return this.processInstanceRow.getProcessStartTime();
	}

	public List getProcessVariables()
	{
		// TODO Auto-generated method stub
		return this.processInstanceRow.getProcessVariables();
	}

	public void setProcessInstanceRow(ProcessInstanceRow processInstanceRow)
	{
		this.processInstanceRow = processInstanceRow;
	}

	public ProcessInstanceRow getProcessInstanceRow()
	{
		return processInstanceRow;
	}

}
